luci-base: ui.js: fix UICheckbox widget operation when tooltips are set
authorJo-Philipp Wich <[email protected]>
Mon, 29 Mar 2021 09:24:59 +0000 (11:24 +0200)
committerJo-Philipp Wich <[email protected]>
Mon, 29 Mar 2021 09:28:15 +0000 (11:28 +0200)
commitadcc2ef446cc2efa0eb81764b7c7ede3ba6a5bc2
tree15ed5496554063a370a1a6cb4c8218af430d3bfc
parentb60b8380279f575e0c19aad12dfd0ea24852692f
luci-base: ui.js: fix UICheckbox widget operation when tooltips are set

When a tooltip is rendered for a checkbox widget, an additional node is
placed after the checkbox label element, breaking DOM selectors in
bind(), isChecked(), setValue().

Apparently the functionality was never actually tested.

Fixes: #4938
Fixes: e951236e3 ("luci-base: add tooltip handling")
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 95b5c6cd6464d11d6baa22bcf2c9469847353813)
modules/luci-base/htdocs/luci-static/resources/ui.js